<?php
require_once 'top/TopClient.php';
require_once 'top/RequestCheckUtil.php';
require_once 'top/request/ItemGetRequest.php';

$id = trim($_POST['id']);
if ($id) {
	$c = new TopClient;
	$c->appkey = '21170405';
	$c->secretKey = 'e7b2c2be477fcd7196e40c1f8b81a0ee';
	$req = new ItemGetRequest;
	$req->setFields("detail_url,num_iid,title,nick,type,cid,seller_cids,props,input_pids,input_str,desc,pic_url,num,valid_thru,list_time,delist_time,stuff_status,location,price,post_fee,express_fee,ems_fee,has_discount,freight_payer,has_invoice,has_warranty,has_showcase,modified,increment,approve_status,postage_id,product_id,auction_point,property_alias,item_img,prop_img,sku,video,outer_id,is_virtual,item_weight");
	$req->setNumIid($id);
	$resp = $c->execute($req);
	echo($resp);
}
exit;